﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AMPSDAO.Entity.Attributes;

namespace AMPSDAO.Entity.Entitys
{
    public class User:BaseEntity
    {
        private long id;
        [ColumnAttribute(PrimaryKey=true, NotNull=true)]
        public long ID
        {
            get { return id; }
            set { id = value; }
        }

        private UserDetail userDetail;
        [ColumnAttribute(ForeinKey = true, NotNull = true, Name="DetailID")]
        public UserDetail UserDetail
        {
            get { return userDetail; }
            set { userDetail = value; }
        }

        private Account account;
        [ColumnAttribute(ForeinKey = true, Name="AccountID")]
        public Account Account
        {
            get { return account; }
            set { account = value; }
        }

        private bool isDelete;
        [ColumnAttribute()]
        public bool IsDelete
        {
            get { return isDelete; }
            set { isDelete = value; }
        }
        
    }
}
